package byx.container.annotation.WrapTest;

import byx.container.annotation.annotation.Id;
import byx.container.annotation.annotation.Register;
import java.util.function.Function;

@Register
public class W1 implements Function<E, E> {
    private final int v1;

    public W1(@Id("v1") int v1) {
        this.v1 = v1;
    }

    @Override
    public E apply(E e) {
        return new E() {
            @Override
            public int g(String s) {
                return e.g(s) + v1 + 100;
            }
        };
    }
}
